<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>JsonP的简单实现</title></title>
</head>
<body>
  <button id="btn">点击发送请求</button>
  <script>
    function getJsonData(data){
      console.log("数据获取成功");
      console.log(data);
    }
    var btn = document.getElementById("btn");
    btn.onclick = function(){
      //创建script标签
      var script = document.createElement("script");
      script.src = ""
    }
  </script>
</body>
</html>